﻿<phone:PhoneApplicationPage 
    x:Class="HomeBuyerTools.Views.HomeValueProjection.HomeValueProjection"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="728" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
            <Image x:Name="imgTitle" Width="71" Height="71" HorizontalAlignment="Left" MouseEnter="imgTitle_MouseEnter" Style="{StaticResource PovitTitle}"/>
            <TextBlock x:Name="tblkhyphen" Text="-" Margin="0,-20,5,0" FontSize="74" Foreground="White"/>
            <TextBlock Text="HomeValueProjection" Margin="0,15,0,0" Width="245" FontFamily="Comic Sans MS" Foreground="Red" FontSize="22" FontWeight="Bold" TextWrapping="NoWrap"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <StackPanel  Grid.Row="0" Orientation="Horizontal">
                <TextBlock  Margin="0,0,0,0" Name="tbCurrentHomeValue"  Text="Current Home Value" Width="189" FontSize="30" Foreground="White"/>
                <TextBox Margin="45,0,0,0" Text=" 600" InputScope="TelephoneNumber" Name="txtCurrentHomeValue" Width="260" Foreground="White"/>
            </StackPanel>
            <StackPanel  Grid.Row="1" Orientation="Horizontal">
                <TextBlock   Margin="0,0,0,0" Name="tbProjectThrough" Text="Project Through" Width="229" FontSize="30" Foreground="White"/>
                <toolkit:ListPicker x:Name="ListYear" Margin="20,0,0,0" Width="233" ItemCountThreshold="6"  Foreground="White">
                    <ListBoxItem Content="2006"></ListBoxItem>
                    <ListBoxItem Content="2007"></ListBoxItem>
                    <ListBoxItem Content="2008"></ListBoxItem>
                    <ListBoxItem Content="2009"></ListBoxItem>
                    <ListBoxItem Content="2010"></ListBoxItem>
                    <ListBoxItem Content="2011"></ListBoxItem>
                </toolkit:ListPicker>
            </StackPanel>
            <TextBlock Name="tbAppreciationRate" Text="Appreciation Rate" Grid.Row="2" FontSize="30" Foreground="White"/>
            <RadioButton Content="SpecifyRate" Margin="0,0,95,0" Grid.Row="3" x:Name="rbrate"  Width="200" HorizontalAlignment="Right" IsChecked="True" Foreground="White"/>
            <toolkit:ListPicker x:Name="RateList" Grid.Row="4" Margin="0,0,0,0" ItemCountThreshold="3" ListPickerMode="Expanded"  Width="200" HorizontalAlignment="Right" Foreground="White">
                <toolkit:ListPicker.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding percentage}"/>
                    </DataTemplate>
                </toolkit:ListPicker.ItemTemplate>
                <toolkit:ListPicker.FullModeItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding percentage}"/>
                    </DataTemplate>
                </toolkit:ListPicker.FullModeItemTemplate>
            </toolkit:ListPicker>
            <RadioButton Width="301" HorizontalAlignment="Right" Content="Use a National Average" Grid.Row="5" x:Name="RbNAvg"  Foreground="White"/>
            <RadioButton Width="269" HorizontalAlignment="Right" Content="Use a Local Average" Margin="0,0,32,0" Grid.Row="6" x:Name="rbLAvg"  Foreground="White"/>
            <toolkit:ListPicker Width="250" HorizontalAlignment="Right" Name="ListLocal" Grid.Row="7" Margin="0,0,0,0" ItemCountThreshold="8" Foreground="White">
                <ListBoxItem Content="Abilene,TX"></ListBoxItem>
                <ListBoxItem Content="Abilene,TX"></ListBoxItem>
                <ListBoxItem Content="Abilene,TX"></ListBoxItem>
            </toolkit:ListPicker>
            <!--<Button Content="Calculate" Grid.Row="8" Height="74" HorizontalAlignment="Left" Margin="107,32,0,0" Name="button1" VerticalAlignment="Top" Width="244" Click="Calculate_Click"/>-->
            <StackPanel Name="adstackpl" Grid.Row="8" Orientation="Vertical"  Margin="0,70,5,0">

            </StackPanel>
        </Grid>
       
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" Text="Calculate" Click="ApplicationBarIconButton_Click"/>
            <!--<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>
